package com.ogawa.project6602.wdiget;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.widget.TextView;

import com.github.mikephil.charting.components.MarkerView;
import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.highlight.Highlight;
import com.ogawa.project6602.R;

import me.jessyan.autosize.utils.AutoSizeUtils;

public class HealthIndexMakerView extends MarkerView {
    TextView textView;
    public HealthIndexMakerView(Context context) {
        super(context, R.layout.item_view_healthindex);
        textView = findViewById(R.id.timeTv);
    }

    @Override
    public void refreshContent(Entry e, Highlight highlight) {
        super.refreshContent(e, highlight);
        textView.setText("" + e.getX());
    }
}
